package com.example.projectcode.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.projectcode.model.Comprehensive;
import com.example.projectcode.vo.ComprehensiveVo;
import com.example.projectcode.vo.UpdateComprehensiveVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ComprehensiveMapper extends BaseMapper<Comprehensive> {
    List<Comprehensive> selectAllComprehensives(@Param("Testpointid")Integer testPointid,
                                                @Param("Cp_type") String questionCategory);


    Comprehensive selectComprehensive(@Param("Testpointid") Integer testPointid,
                                      @Param("Cp_type") String questionCategory,
                                      @Param("order") Integer order);

    int updateComprehensiveById(UpdateComprehensiveVo updateComprehensiveVo);
}
